package com.timebank.volunteer.mapper;

import com.timebank.volunteer.pojo.entity.VolunteerSignList;
import com.timebank.volunteer.pojo.vo.VolunteerSignListVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 志愿服务 签到名单
 * @author shiliuyinzhen
 */
@Mapper
public interface VolunteerSignListMapper {

    /**
     * 根据志愿服务id获取签到名单
     * @param volunteerSignList
     * @return
     */
    List<VolunteerSignListVO> getSignList(VolunteerSignList volunteerSignList);

    /**
     * 新增签到
     * @param volunteerSignList
     * @return
     */
    int insertSignList(VolunteerSignList volunteerSignList);

    /**
     * 检验是否签到
     * @param volunteerSignList
     * @return
     */
    List<VolunteerSignListVO> checkSign(VolunteerSignList volunteerSignList);
}
